package com.qdxwx.models.shopcart;

import com.qdxwx.models.course.CourseDTO;

import java.io.Serializable;
import java.time.LocalDateTime;

public class ShopCart implements Serializable {

    private static final long serialVersionUID = 6757060331190184782L;
    private Long id;
    private Integer goodsId;// 商品id
    private Long userId;
    private Integer typeId;//1课程 2套餐（备用）
    private LocalDateTime addTime;
    private CourseDTO course;

    public ShopCart() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public LocalDateTime getAddTime() {
        return addTime;
    }

    public void setAddTime(LocalDateTime addTime) {
        this.addTime = addTime;
    }

    public CourseDTO getCourse() {
        return course;
    }

    public void setCourse(CourseDTO course) {
        this.course = course;
    }

    @Override
    public String toString() {
        return "ShopCart{" +
                "id=" + id +
                ", goodsId=" + goodsId +
                ", userId=" + userId +
                ", type=" + typeId +
                ", addTime=" + addTime +
                ", course=" + course +
                '}';
    }
}
